#ifndef  __BSPCAN_H_
#define  __BSPCAN_H_

#include "stm32f4xx.h"

typedef struct
{
	uint16_t NodeID;  // 节点 ID
	void(*CanRx0_Handle)(uint16_t ID,uint8_t *Dat,uint8_t Len);  // CAN FIFO0 中断回调函数
	void(*CanRx1_Handle)(uint16_t ID,uint8_t *Dat,uint8_t Len);  // CAN FIFO1 中断回调函数
}TypeDefBspCanStruct;

uint8_t BspCan1_Init(TypeDefBspCanStruct *CAN_p);
uint8_t CanMailBoxCheck(CAN_TypeDef* CANx);
uint8_t Can1SendData(uint16_t StdId,uint8_t *Buff,uint8_t Len);

#endif

